//
//  BaseViewController.h
//  Cycling
//
//  Created by cjg.mini on 2023/3/2.
//

#import <UIKit/UIKit.h>
#import "Public.h"

@interface BaseViewController : UIViewController

@property (nonatomic,assign) CGFloat navigationHeight;
@property (nonatomic,assign) CGFloat bottomSafeHeight;

// alert提示操作【单个action】
- (void)alertViewTitle:(NSString*)title message:(NSString*)msg title:(NSString*)buttonTitle block:(CycBlock)block ;

// alert提示操作【左右双action】
- (void)alertViewTitle:(NSString*)title message:(NSString*)msg left:(NSString*)left leftBlock:(CycBlock)leftBlock right:(NSString*)right  rightBlock:(CycBlock)rightBlock ;

//显示加载中...
-(void)showLoadingViewWithText:(NSString *__nullable)text;
//移除加载中...
-(void)removeLoadingView;

- (void)showSuccessWithText:(NSString *_Nullable)success;
- (void)showErrorWithText:(NSString *_Nullable)error;

@end
